package com.xbongbong.paas.service.stage.jump;

import com.xbongbong.paas.service.stage.StageJumpHandle;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Auther: yingjianfeng
 * @Date: 2021/12/3 11:04
 * @Description: 阶段跳转
 */
@Component
public class StageJumpFactory {
    @Resource
    private Map<Integer, StageJumpHandle> stageJumpMap;

    public StageJumpHandle getStageJump(Integer type) {
        return stageJumpMap.get(type);
    }

}

